let uavMesh="http://192.168.5.99:10091";
let configManager = "http://192.168.5.99:8082";

const config = {

  threeJs: {
    pages: {
      index: {
        entry: "src/projects/threeJs/main.js",
        template: "public/index.html",
        filename: "index.html",
      },
    },
    devServer: {
      open: false, // 是否自动打开浏览器页面
      host: "0.0.0.0", // 指定使用一个 host，默认是 localhost
      https: false, // 使用https提供服务
      // disableHostCheck: true,
      historyApiFallback: true,
      allowedHosts: ['all'],
      // 设置代理
      proxy: {
        "/uavMesh": {
          ws:false,
          target: uavMesh,
          changeOrigin: true,
        },
        '/deployApi': {
            ws:false,
            target: configManager,
            changeOrigin: true,
        }
      }
    }
  },
};
module.exports = config;
